package com.firefighting.dao;

import com.firefighting.base.dao.BaseMapper;
import com.firefighting.entity.User;
import com.firefighting.entity.UserExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserMapper extends BaseMapper<User> {

    List<User> selectUserAndRoleByExample(UserExample example);

	List<User> selectByNameAndPassWord(User user);
	
	/*zhyan 根据账号名进行查询*/
    User getUserIdByUsername(@Param("username") String username);
    /*zhyan 更新用户名和密码*/
    void updateUsernameAndPswdByUsernm(@Param("oldUsername") String oldUsername, @Param("newUsername") String newUsername, @Param("password") String password);
  /*Liuxc 获取最大ID*/
	int getMaxId();
    /*韩佳迪 更新密码*/
    void updatePswdById( @Param("userId") String userId, @Param("password") String password);
    //根据userbasicID返回users Id
	int getUserIdByUserBasicId(@Param("ubiId")Integer executorName);

  
}